package com.huang.domain;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@Entity
@Table(name = "student")
public class Student {
    @Id
    private String studentNum;
    @NotNull
    private String studentName;
    @NotNull
    private String sex;
    @NotNull
    private int classNum;

    public String getStudentNum() {
        return studentNum;
    }
    public String getStudentName() {
        return studentName;
    }
    public String getSex() {
        return sex;
    }
    public int getClassNum() {
        return classNum;
    }
    public void setStudentNum(String studentNum) {
        this.studentNum = studentNum;
    }
    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    public void setClassNum(int classNum) {
        this.classNum = classNum;
    }
}
